package com.ruoyi.customer.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 业绩星级业务对象 grade_config
 *
 * @author ruoyi
 * @date 2023-09-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class GradeConfigBo extends BaseEntity {

    /**
     * 配置ID
     */
    @NotNull(message = "配置ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 开始金额
     */
    @NotBlank(message = "开始金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startPrice;

    /**
     * 结束金额
     */
    @NotBlank(message = "结束金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endPrice;

    /**
     * 等级
     */
    @NotBlank(message = "等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String grade;


    private String gradeName;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 比率（%）
     */
    private String ratio;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 状态（1正常 0停用）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建者id
     */
    private Long createId;


}
